<!DOCTYPE html>
<html>
<head>
    <title>报修</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="description" content="">
    <link rel="stylesheet" href="./lib/weui.min.css">
    <link rel="stylesheet" href="./css/jquery-weui.css">
    <link rel="stylesheet" href="./css/demos.css">
</head>

<body ontouchstart>
<header class='demos-header'>
    <h1 class="demos-title">报修</h1>
</header>

<div class="weui-cells weui-cells_form">

    <div class="weui-cell">
        <div class="weui-cell__hd"><label for="area" class="weui-label">地区</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" id="area" type="text" value="湖北省 武汉市 武昌区">
        </div>
    </div>

    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">具体地址</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input" id="tel" type="tel" pattern="[0-9]*" placeholder="地址" name="tel">
        </div>
    </div>

    <div class="weui-cell weui-cell_select weui-cell_select-after">
        <div class="weui-cell__hd">
            <label class="weui-label">报修项目</label>
        </div>
        <div class="weui-cell__bd">
            <select class="weui-select" name="select2">
                <option value="1">窗户</option>
                <option value="2">路灯</option>
                <option value="3">床铺</option>
            </select>
        </div>
    </div>

    <div class="weui-cells weui-cells_form">
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <textarea class="weui-textarea" placeholder="详细描述" rows="3"></textarea>
                <div class="weui-textarea-counter"><span>0</span>/200</div>
            </div>
        </div>
    </div>

    <div class="weui-cell">
        <div class="weui-cell__bd">
            <div class="weui-uploader">
                <div class="weui-uploader__hd">
                    <p class="weui-uploader__title">图片上传</p>
                    <div class="weui-uploader__info">0/2</div>
                </div>
                <div class="weui-uploader__bd">
                    <ul class="weui-uploader__files" id="uploaderFiles">
                        <li class="weui-uploader__file" style="background-image:url(./images/pic_160.png)"></li>
                        <li class="weui-uploader__file" style="background-image:url(./images/pic_160.png)"></li>
                        <li class="weui-uploader__file" style="background-image:url(./images/pic_160.png)"></li>
                        <li class="weui-uploader__file weui-uploader__file_status"
                            style="background-image:url(./images/pic_160.png)">
                            <div class="weui-uploader__file-content">
                                <i class="weui-icon-warn"></i>
                            </div>
                        </li>
                        <li class="weui-uploader__file weui-uploader__file_status"
                            style="background-image:url(./images/pic_160.png)">
                            <div class="weui-uploader__file-content">50%</div>
                        </li>
                    </ul>
                    <div class="weui-uploader__input-box">
                        <input id="uploaderInput" class="weui-uploader__input" type="file" accept="image/*" multiple="">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="weui-btn-area">
    <a class="weui-btn weui-btn_primary" href="javascript:" id="submit">确定</a>
</div>

<script src="./lib/jquery-2.1.4.js"></script>
<script src="./lib/fastclick.js"></script>
<script src="./js/jquery-weui.js"></script>
<script src="./js/city-picker.js"></script>
<script>
    $(function () {
        FastClick.attach(document.body);
    });

    $("#area").cityPicker({
        title: "选择出发地",
        onChange: function (picker, values, displayValues) {
            console.log(values, displayValues);
        }
    });
    $("#end").cityPicker({
        title: "选择目的地"
    });
    $("#home-city").cityPicker({
        title: "选择目的地",
        showDistrict: false,
        onChange: function (picker, values, displayValues) {
            console.log(values, displayValues);
        }
    });
</script>
<script src="./js/jquery-weui.js"></script>

</body>
</html>
